package whu.edu.bean;


import whu.edu.bean.InitMethod;

public class MyClass {
    @InitMethod
    public void init(){
        name = "whu";
        System.out.println("init()方法被调用");
    }

    public String getName()
    {
        return name;
    }
    public MyClass(){}
    public String name = "暂未命名";
}


